package cn.changgou.service;
import cn.changgou.goods.pojo.Goods;
import cn.changgou.goods.pojo.Spu;
import com.github.pagehelper.PageInfo;
import java.util.List;

public interface SpuService {

    /*Spu多条件分页查询*/
    PageInfo<Spu> findPage(Spu spu, int page, int size);

    /*Spu分页查询*/
    PageInfo<Spu> findPage(int page, int size);

    /*Spu多条件搜索方法*/
    List<Spu> findList(Spu spu);

    /*删除Spu*/
    void delete(Long id);

    /*修改Spu数据*/
    void update(Spu spu);

    /*新增Spu*/
    void add(Spu spu);

    /*根据ID查询Spu*/
     Spu findById(Long id);

    /*查询所有Spu*/
    List<Spu> findAll();

    /*添加商品(SPU+ SKUlIST)*/
    void save(Goods goods);

    Goods findGoodsById(Long id);

    void auditSpu(Long id);

    /*下架*/
    void pullSpu(Long id);

    void logicDeleteSpu(Long id);

    void restoreSpu(Long id);

    /*商品上架*/
    void put(Long spuId);

    /*批量上架*/
    void putMany(Long[] ids);
}
